package com.luyou.awt.image;

import javax.imageio.ImageIO;

/**
 * ImageIO所支持读写的全部文件格式。
 */
public class ImageIOTest {

    public static void main(String[] args) {
        final String[] readerFormatNames = ImageIO.getReaderFormatNames();
        System.out.println("---Image能读的所有图形文件格式");
        for (String readerFormatName : readerFormatNames) {
            System.out.println(readerFormatName);
        }
        final String[] writerFormatNames = ImageIO.getWriterFormatNames();
        System.out.println("---Image能写的所有图形文件格式");
        for (String writerFormatName : writerFormatNames) {
            System.out.println(writerFormatName);
        }
    }
}
